package com.lxyk.sgq.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

/**
 * (Order)表实体类
 *
 * @author makejava
 * @since 2023-04-22 15:17:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_order")
public class Order extends Model<Order> {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private String orderId;
    
    private Integer goodsId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    //订单完成状态 0：已下单，1：已发货，2：已送达，3：已签收，4：拒收，5：订单异常
    private Integer state;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

}

